import { srvHttp } from '@/api/srvHttp'


//查询商品
export function selectByAdmin(data) {
    return srvHttp({
        url: '/api/goods/selectAdmin/',
        data: data,
        method: 'POST'
    })
}

//添加
export function addGoodsAll(data) {
    return srvHttp({
        url: '/api/goods/add',
        data: data,
        method: 'POST'
    })
}
//修改商品
export function updateGoodsAll(data) {
    return srvHttp({
        url: '/api/goods/update',
        data: data,
        method: 'POST'
    })
}
//删除
export function delGoodsById(id) {
    return srvHttp({
        url: `/api/goods/deleteById?id=${id}`,
        method: 'GET'
    })
}